package job;

/**
 * @author pingwen
 */
public class DefaultJobContext implements JobContext {
    private JobResult jobResult;
    private JobAction jobAction;


    public DefaultJobContext() {
        this.jobResult = new JobResult();
    }

    @Override
    public JobResult getResult() {
        return jobResult;
    }

    @Override
    public JobAction getAction() {
        return jobAction;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append("DefaultJobContext");
        sb.append("{jobResult=").append(jobResult);
        sb.append(", jobAction=").append(jobAction);
        sb.append('}');
        return sb.toString();
    }
}
